// 函数组合要满足结合律
// 先结合前两个数据或者先结合后两个数据 最后结果应该是一样得
const _= require('lodash')
const f = _.flowRight(_.toUpper, _.first, _.reverse)
const f1 = _.flowRight(_.flowRight(_.toUpper, _.first), _.reverse)
const f2 = _.flowRight(_.toUpper, _.flowRight(_.first, _.reverse))
console.log(f(['one', 'tow', 'three']))
console.log(f1(['one', 'tow', 'three']))
console.log(f2(['one', 'tow', 'three']))

